package org.udori.test;

import org.springframework.batch.item.ItemProcessor;

public class EmployeeProcessor implements ItemProcessor<Employee, Employee> {

	public Employee process(Employee emp) throws Exception {
		if (emp.getSalary() >= 2500) {
			emp.setRank("Director");
		} else {
			emp.setRank("N/A");
		}
		return emp;
	}

}
